<?php

class Application_Form_Upload extends Zend_Form
{
    
    public function init()
    {
        $this->setMethod("post");
        $this->setAction('/file/upload');
        $this->setAttrib('enctype', 'multipart/form-data');
        $path = new Zend_Form_Element_Text('path');
        $file = new Zend_Form_Element_File('file');
        $file->setMaxFileSize(1000000000);
        $file->addValidator('Size', false, 1000000000);
        $this->addElements(array($path, $file));
    }

}

